from django.db import models

class User(models.Model):
    username = models.CharField(max_length=12)
    password = models.CharField(max_length=16)

class UserInfo(models.Model):
    user = models.ForeignKey(User)
    name = models.CharField(max_length=20)
    gender = models.CharField(max_length=6)
    email = models.EmailField()
    birth = models.DateField()
    phone = models.CharField(max_length=16)